package com.wyh.seata.controller;

import com.wyh.seata.domain.Order;
import com.wyh.seata.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import pojo.CommonResult;

import javax.annotation.Resource;

/**
 * @author wyh
 * @version 1.0
 * @date 2021/12/1 17:03
 */
@RestController
@Slf4j
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping(value = "/order/create")
    public CommonResult create(Order order){
        //orderService.createOrder(order);
        return new CommonResult(200,"订单创建成功");
    }
}
